<template>
    <div class="header">
      <div class="header-left" @click="goBack"></div>
      <div class="header-title">
        <h3>{{currentSongs.name}}</h3>
        <p>{{currentSongs.singer}}</p>
      </div>
      <div class="header-right"></div>
    </div>
</template>

<script>
import { mapActions, mapGetters } from 'vuex'
export default {
  name: 'PlayerHeader',
  data: function () {
    return {
      themes: ['theme', 'theme1', 'theme2'],
      index: 0
    }
  },
  methods: {
    ...mapActions([
      'setFullScreen',
      'setminiplay'
    ]
    ),
    goBack () {
      this.setFullScreen(false)
      this.setminiplay(true)
    }
  },
  computed: {
    ...mapGetters([
      'currentSongs'
    ])
  }
}
</script>

<style scoped lang="scss">
  @import "../../assets/css/variable";
  @import "../../assets/css/mixin";
.header{
  width: 100%;
  height: 100px;
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 999;
  //@include bg_color();
  .header-left , .header-right{
    width: 84px;
    height: 84px;
    /*background: #000;*/
    margin-top: 8px;
  }
  .header-left{
    @include bg_img('../../assets/images/down');
  }
  .header-right{
    //@include bg_img('../../assets/images/more');
  }
  .header-title{
    /*line-height: 100px;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    /*font-weight: bold;*/
    @include font_size($font_medium);
    @include no-wrap();
  }
}
</style>
